# -*- coding: utf-8 -*-
a = 0b11011  #二进制用前缀 0b
print(a)
# 27
b = 0o71 #八进制用前缀0o
print(b)
# 57
c = 0x18  #十六进制用前缀0x
print(c)
# 24
d = b'123'  #字节的前缀用 b，后面跟字符串 # 有难度
print(d.hex())
# '313233'

str1 = "xyz"
print(str1.encode('UTF-8').hex())

str1 = "重庆市北碚区"
print(str1.encode('UTF-8').hex())